const express = require("express");
const parser = require("body-parser");

const app = express();

// 2. 使用 app.use() 注册中间件
app.use(parser.urlencoded({ extended: false }))
// app.use(express.urlencoded({ extended: false }))

app.listen("80", () => {
  console.log("127.0.0.1");
});

app.post("/user", (req, res) => {
  console.log(req.body);
  res.send("ok");
});
